package com.lonwin.inspectionmanagement.mvp.ui.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lonwin.inspectionmanagement.R;
import com.lonwin.inspectionmanagement.mvp.model.entity.bean.PointHistoryBean;

import java.util.List;

public class PointRecordingAdapter extends BaseQuickAdapter<PointHistoryBean.DataBean,BaseViewHolder> {
    public PointRecordingAdapter(@Nullable List<PointHistoryBean.DataBean> data) {
        super(R.layout.point_recording_item,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PointHistoryBean.DataBean item) {
      helper.setText(R.id.point_recording_item_point,item.getQuesttypenm())
              .setText(R.id.point_recording_address,item.getAddr())
              .setText(R.id.point_recording_descript,"描述："+(item.getContent()!=null?item.getContent():""));
      helper.addOnClickListener(R.id.point_recording_item_point_btn);

    }
}
